package cn.gglol.jvvtool.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author jvvtao
 * @version 1.0
 * @project Name: jvvtool
 * @file Name: RedisProperties
 * @desc 功能描述
 * @date 2021/9/2
 * @time 16:31
 * @by IDE: IntelliJ IDEA
 */
@Component
@ConfigurationProperties(prefix = "spring.redis.cache")
public class RedisProperties {
    private String clusterNodes;
    private Integer   commandTimeout;

    public String getClusterNodes() {
        return clusterNodes;
    }

    public void setClusterNodes(String clusterNodes) {
        this.clusterNodes = clusterNodes;
    }

    public Integer getCommandTimeout() {
        return commandTimeout;
    }

    public void setCommandTimeout(Integer commandTimeout) {
        this.commandTimeout = commandTimeout;
    }
}
